import { useTranslation } from "react-i18next";
import "./index.less";
// import { useTranslation } from "react-i18next";
import { BasicForm, FormSchema, useForm } from "@/components/Form";

const modify = () => {
	const { t } = useTranslation();
	const formSchemaTop: FormSchema[] = [
		{
			label: t("system.dict.dictionary_name"),
			component: "Input",
			field: "field"
		},
		{
			label: t("system.dict.state"),
			component: "Input",
			field: "type"
		},
		{
			label: t("system.dict.state"),
			component: "Select",
			field: "status"
		},
		{
			label: t("system.dict.notes"),
			component: "InputTextArea",
			field: "remark"
		}
	];
	const [formTop] = useForm({
		schemas: formSchemaTop,
		labelWidth: 80
	});
	return <BasicForm register={formTop}></BasicForm>;
};
export default modify;
